
<script setup lang="ts">
import wangEditor from './components/wangEditor.vue'
import { ref } from 'vue'
const val = ref('')
</script>

<template>
  <div style="display: flex;">
    <div style="width: 50%;">
      <wangEditor v-model:value="val" />
    </div>
    <div style="width: 50%;">
      <h2 style="text-align: center;">预览</h2>
      <div v-html="val"></div>
    </div>
  </div>
</template>